package com.jstyle.jclife.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.jstyle.jclife.R;
import com.jstyle.jclife.utils.ScreenUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ProvicyAboutActivity extends AppCompatActivity {

    @BindView(R.id.tv_proivcy)
    TextView tvProivcy;
    @BindView(R.id.bt_goal_back)
    Button btGoalBack;
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.iv_share)
    ImageView ivShare;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_provicy_about);
        ButterKnife.bind(this);
        tvProivcy.setText(Html.fromHtml(getString(R.string.provicy)));
        tvProivcy.setMovementMethod(LinkMovementMethod.getInstance());
        ivShare.setVisibility(View.GONE);
        btGoalBack.setText(R.string.provicy_title);
        ScreenUtils.setTitleTypeface(btGoalBack);
    }

    @OnClick(R.id.iv_back)
    public void onViewClicked() {
        finish();
    }
}
